package model.financial;

public class BillSent implements BillState {
	private Bill bill;

	public BillSent(Bill bill) {
		this.bill = bill;
	}

	@Override
	public void handle() {
		bill.setState(bill.getBillPayed());
	}

	@Override
	public void archive() throws Exception {
		throw new Exception("Bill must be payed before it can be archived.");

	}

}
